package com.baizhi.appController;
import com.baizhi.service.AlbumService;
import com.baizhi.service.AudioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
/**
 * Created by Administrator on 2019/4/6.
 * 专辑控制器
 */
@RestController()
@RequestMapping("AppAlbumController")
public class AppAlbumController {
    @Autowired
    private AlbumService albumService;
    @Autowired
    private AudioService audioService;




    @GetMapping("appselectAllAlbum.do")
    public Map appselectAllAlbum(){
        return albumService.appselectAllAlbum();
    };


    //专辑详情章节
    @GetMapping("appselectAlbumparticulars.do/{albumId}")
    public Map appselectAlbumparticulars(@PathVariable("albumId")Integer albumId){
        return audioService.appselectAlbumparticulars(albumId);
    };



}
